package com.alterzhang.alterzhangweb.controller;

import com.alterzhang.alterzhangweb.controller.VO.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApolloController {

    @Value("${apollo.test}")
    private String apollo;



    @Value("${config}")
    private String test;

    @Autowired
    private User user;



    @RequestMapping("/apollo")
    public String sayHello() {
        return "hello:" + apollo+":"+test+":"+user.getName()+":"+user.getAge();
    }
}
